package com.yytek.gw.init;


import com.yytek.gw.service.DriverCustomService;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * Driver SDK Initial
 *
 * @author pnoker
 */
@Component
@ComponentScan(basePackages = {
        "com.yytek.gw"
})
public class DriverInitRunner implements ApplicationRunner {

    @Resource
    private DriverCustomService driverCustomService;


    @Override
    public void run(ApplicationArguments args) throws Exception {
        //初始化驱动启动
        driverCustomService.initial();
    }
}
